Add 30-day trial licensing system with offline key validation#2
Merged
Conversation
Implements a licensing gate that allows full app use for 30 days, then requires a POSTAI-XXXXX-XXXXX-XXXXX-XXXXX license key validated offline via HMAC-SHA256 checksum. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
8e9d182 to
c40ecc2
Compare
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
HMAC-SHA256 signature is computed over trial_started_at, license_key, and activated_at fields. Verified on every status check — if any field is edited directly in SQLite, the app treats it as expired. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Usage: python manage.py generate_license_key [-n COUNT] Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Adds a visual letter indicator next to the link icon so users can quickly identify which variables belong to the same linked group. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add a new 'link-groups' tab type that displays linked environment variables grouped by link_group as side-by-side editable cards. Supports inline value editing, adding/deleting value rows across all linked variables, and renaming link groups. Also adds variable reordering, order field, and linked value dropdown improvements. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
licensing_appDjango app with a singletonLicensemodel tracking trial start date and license keyPOSTAI-XXXXX-XXXXX-XXXXX-XXXXX)GET /api/v1/license/status/andPOST /api/v1/license/activate/endpointsLicenseGatecomponent that blocks app access when trial expiresApp.tsx— fetches status after backend connects, shows gate if expiredTest plan
python manage.py test licensing_app— 9 tests passnpm run typecheckpassesis_trial=true, days_remaining=30trial_started_at31 days ago → LicenseGate shown🤖 Generated with Claude Code